-- GENERATED SPELL FOR [Sergeant Brashclaw] --


function spell0_506(pUnit, Event) --@Frenzied Command,n/a--
pUnit:FullCastSpellOnTarget(3136,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_506', 10000, 1)
end

function spell1_506(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(5164,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_506', 2000, 1)
end

function Sorts_506(pUnit, Event)
local choix_sorts_506 = math.random(0, 1)
if choix_sorts_506 == 0 then
pUnit:RegisterEvent('spell0_506', 1, 1)
end
if choix_sorts_506 == 1 then
pUnit:RegisterEvent('spell1_506', 1, 1)
end
end

function mob506_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_506', math.random(1500, 3000), 1)
end

function mob506_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob506_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob506_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(506, 1, 'mob506_Action')
RegisterUnitEvent(506, 2, 'mob506_Leave')
RegisterUnitEvent(506, 3, 'mob506_Kill')
RegisterUnitEvent(506, 4, 'mob506_Die')
